using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System;
namespace ERPBackend.Models
  {
      // 联系人类型枚举
      public enum ContactType
      {
          业务 = 1,
          财务 = 2
      }

      public class SupplierContact : BaseModel
    {
      
        public int SupplierId { get; set; }

        [Required]
        [StringLength(50)]
        public string ContactType { get; set; } = string.Empty;

        [Required]
        [StringLength(100)]
        public string ContactName { get; set; } = string.Empty;

        [Required]
        [StringLength(50)]
        public string Phone { get; set; } = string.Empty;

        [Required]
        [StringLength(100)]
        public string Email { get; set; } = string.Empty;

        [StringLength(500)]
        public string? Notes { get; set; }


    }
}